package lab02.test07;

public class Student extends Person {
    private long no;
    private String school;

    @Override
    public String toString() {
        return "学号："+no +"\n"+"学校："+school;
    }

    Student(){}
    Student (long no,String school){
        this.no = no;
        this.school = school;
    }

    public long getNo() {
        return no;
    }

    public void setNo(long no) {
        this.no = no;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}
